package top.tangyh.lamp.care.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.tangyh.lamp.care.vo.result.IotDataResult;

import java.util.List;

/**
 * @author: zqb
 * @date: 2024/11/29 10:48
 */
@Repository
public interface IotDataMapper {

    List<IotDataResult> selectHourRecordsByHis(@Param("hospitalNumber")  String hospitalNumber,@Param("timePointList") List<String> timePointList);

    /**
     * 根据单个时间去查询符合条件的数据
     * @param hospitalNumber
     * @param timePoint
     * @return
     */
    List<IotDataResult> selectHourRecordsByHisOfOne(@Param("hospitalNumber")  String hospitalNumber,@Param("timePoint")String timePoint);

    /**
     * 观察项自定义时间采集
     * @param hospitalNumber
     * @param timePoint
     * @return
     */
    List<IotDataResult>  getCustomCollectionByHospitalNumberAndTimePointOne(@Param("hospitalNumber")  String hospitalNumber,@Param("timePoint")String timePoint);

    String selectTimeTest();
}
